﻿using UnityEngine;
using UnityEngine.UI;
using HKTools;

public class Test_UIFrames : MonoBehaviour
{
    [SerializeField] Button start_Btn;
    [SerializeField] Button end_Btn;
    [SerializeField] Button frames_Btn;

    [SerializeField] HK_CircleFramesAnimator circleFramesAnim;
    [SerializeField] HK_SingleFramesAnimator singleFramesAnim;

    void Start()
    {
        start_Btn.onClick.AddListener(() =>
        {
            circleFramesAnim.PlayFramesAnim();
        });

        end_Btn.onClick.AddListener(() =>
        {
            circleFramesAnim.StopFramesAnim();
        });

        frames_Btn.onClick.AddListener(() =>
        {
            singleFramesAnim.PlayFramesAnim();
        });
    }
}
